fixing binary problem