some code cleaning

Signed-off-by: Alexander Skjolden <alex@plastboks.net>